package org.linlinjava.litemall.admin.controller.address.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.linlinjava.litemall.core.pojo.PageParam;
import org.linlinjava.litemall.db.domain.LitemallAddress;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@ApiModel("收货地址请求参数")
public class AdminAddressPageRespVO {

    private Integer id;

    @ApiModelProperty("名字")
    private String name;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("国家")
    private String country;

    @ApiModelProperty("省")
    private String province;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("县")
    private String county;

    @ApiModelProperty("详细地址")
    private String addressDetail;

    @ApiModelProperty("区号")
    private String areaCode;

    @ApiModelProperty("邮政编码")
    private String postalCode;

    @ApiModelProperty("电话")
    private String tel;

    @ApiModelProperty("是否默认")
    private Boolean isDefault;

    @ApiModelProperty("添加时间")
    private LocalDateTime addTime;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("姓")
    private String surname;

    @ApiModelProperty("国家编码")
    private Integer countryCode;

    @ApiModelProperty("地址")
    private UserVO user;

    @Data
    @ApiModel("收货地址请求参数")
    public static class UserVO{
        @ApiModelProperty("用户ID")
        private Integer userId;

        @ApiModelProperty("用户名")
        private String username;

        @ApiModelProperty("昵称")
        private String nickname;

        @ApiModelProperty("头像")
        private String avatar;

        @ApiModelProperty("性别")
        private Byte gender;

        @ApiModelProperty("生日")
        private LocalDate birthday;

        @ApiModelProperty("电子邮件")
        private String email;

        @ApiModelProperty("手机号")
        private String mobile;
    }


}
